package com.ruoyi.process.service.impl;

import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.ruoyi.process.mapper.WorkflowcateMapper;
import com.ruoyi.process.domain.Workflowcate;
import com.ruoyi.process.service.IWorkflowcateService;

/**
 * 流程分类Service业务层处理
 * 
 * @author wuenguo
 * @date 2025-07-05
 */
@Service
public class WorkflowcateServiceImpl implements IWorkflowcateService 
{
    @Autowired
    private WorkflowcateMapper workflowcateMapper;

    /**
     * 查询流程分类
     * 
     * @param pcid 流程分类主键
     * @return 流程分类
     */
    @Override
    public Workflowcate selectWorkflowcateByPcid(Long pcid)
    {
        return workflowcateMapper.selectWorkflowcateByPcid(pcid);
    }

    /**
     * 查询流程分类列表
     * 
     * @param workflowcate 流程分类
     * @return 流程分类
     */
    @Override
    public List<Workflowcate> selectWorkflowcateList(Workflowcate workflowcate)
    {
        return workflowcateMapper.selectWorkflowcateList(workflowcate);
    }

    /**
     * 新增流程分类
     * 
     * @param workflowcate 流程分类
     * @return 结果
     */
    @Override
    public int insertWorkflowcate(Workflowcate workflowcate)
    {
        return workflowcateMapper.insertWorkflowcate(workflowcate);
    }

    /**
     * 修改流程分类
     * 
     * @param workflowcate 流程分类
     * @return 结果
     */
    @Override
    public int updateWorkflowcate(Workflowcate workflowcate)
    {
        return workflowcateMapper.updateWorkflowcate(workflowcate);
    }

    /**
     * 批量删除流程分类
     * 
     * @param pcids 需要删除的流程分类主键
     * @return 结果
     */
    @Override
    public int deleteWorkflowcateByPcids(Long[] pcids)
    {
        return workflowcateMapper.deleteWorkflowcateByPcids(pcids);
    }

    /**
     * 删除流程分类信息
     * 
     * @param pcid 流程分类主键
     * @return 结果
     */
    @Override
    public int deleteWorkflowcateByPcid(Long pcid)
    {
        return workflowcateMapper.deleteWorkflowcateByPcid(pcid);
    }
}
